<?php

// No direct access
defined('_JEXEC') or die('Restricted access');

class KetnoiTablePhanquyen extends JTable
{
	
	function __construct(&$db) 
	{
		parent::__construct('#__phanquyen', 'id', $db);
	}
	
	public function bind($array, $ignore = '') 
	{
		
		 // Bind the rules.
		if (isset($array['rules']) && is_array($array['rules']))
		{
				$rules = new JAccessRules($array['rules']);
				
				$this->setRules($rules);
		}

		return parent::bind($array, $ignore);
	}
	
	protected function _getAssetName()
	{
		$k = $this->_tbl_key;
		return 'com_ketnoi.'.$this->section;
	}

	/**
	 * Method to return the title to use for the asset table.
	 *
	 * @return	string
	 * @since	1.6
	 */
	protected function _getAssetTitle()
	{
		return $this->section;
	}

	/**
	 * Get the parent asset id for the record
	 *
	 * @return	int
	 * @since	1.6
	 */
	
}
